﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExamPaerPring.aspx.cs" Inherits="Web.ExamPaerPring" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>试卷打印</title>
<style type="text/css">
body,div,h1,h3,h5,p,dl,dt,dd,ul,ol,li,img {padding:0;margin:0;font-size:3.5mm;}
body {font-family:"宋体", Verdana, Geneva, sans-serif;color:#000000;font-size:3.5mm;line-height:160%;}
h3,h5 {font-family:"黑体";}
li {list-style:none;}
img {border:none;}
.wrap {width:150mm;margin:0 auto;height:225mm;background:#000000;clear:both;}
.wrap .content{ background-color:#ffffff;clear:both;}
#TempList{width:150mm;margin:auto;}
.title {height:20mm;font-size:5mm;font-weight:normal;text-align:center;letter-spacing:2mm;}
.title span,.title strong {display:block;}
.title strong {height:15mm;line-height:15mm;font-family:"黑体";font-size:7mm;letter-spacing:8mm;}
.info {width:144mm;padding:0 3mm;}
.info li {float:left;display:inline;}
.info li.school {width:47mm;}
.info li.name {width:33mm;}
.info li.number {width:64mm;}
.ill {border:0.2mm solid #000000;clear:both;margin-top:3mm;}
.ill .ill-t {height:7mm;line-height:7mm;border-bottom:0.1mm solid #000000;padding:0 3mm;}
.ill .ill-c {padding:2mm;}
.blockleft {float:left;width:8mm;}
.blockright {float:right;width:142mm;}
.block {clear:both;}
p img {max-width:500px;width:expression((this.width>500)?500:this.width);}
.isclear{clear:both; height:0px;}
#tool{ background-color:#ffffff;width:150mm;margin:0 auto;}
</style>
</head>
<body>
<input type="button" onclick="javascript:MakeWord();" value="导出页面到Word">
<form runat="server">
<table id="PrintA">
<tr><td>
<div id="top">
  <h1 class="title"><span>2009北京市高级中等学校招生试卷</span><strong><%=ExamPaper_Info.Name %></strong></h1>
  <ul class="info"><li class="school">学校___________________</li><li class="name">姓名___________</li><li class="number">准考证号___________________________</li></ul>
  <div class="ill">
    <h5 class="ill-t">考生须知</h5>
    <div class="ill-c">1.<br />2.<br />3.<br />4.<br />5.</div>
  </div></td></tr>
</table>
<%=LoadQuestion() %>
</div>
</form>

 <script type="text/javascript">
 function MakeWord()
 {
  var word = new ActiveXObject("Word.Application");
  var doc = word .Documents.Add("",0,1);//不打开模版直接加入内容
  var oRange=doc.Range(); 
  var sel = document.body.createTextRange();
  sel.moveToElementText(form);//此处form是页面form的id
  sel.select();
  sel.execCommand("Copy");
  oRange.Paste();
  word .Application.Visible = true;
 }
 </script>
</body>
</html>
